using System;

public delegate void LoginResult(string error, object loginResponse);//Response_Login

public delegate void ShowTermsFinish(bool accept);

public delegate void UpLoadUserInfoResult(string error);

public delegate void AgreeTermsResult(string error);

public interface ILoginCtrl
{
    /// <summary>
    /// 是否已接受条款
    /// </summary>
    bool termsAgreed { get; }

    /// <summary>
    /// 渠道用户名，默认名字
    /// </summary>
    string defaultUserName { get; }
    
    /// <summary>
    /// 显示条款
    /// </summary>
    void ShowTerms(ShowTermsFinish onFinish);

    /// <summary>
    /// 同意条款
    /// </summary>
    /// <param name=""></param>
    void AgreeTerms(AgreeTermsResult onFinish);

    /// <summary>
    /// 登录1 (直接登录)
    /// </summary>
    void Login(LoginResult onFinish);

    void UpLoadUserInfo(string userName, UpLoadUserInfoResult onFinish);

    string GetUUID();
}